<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>请假单明细</title>
		<script src=" Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
	<script src=" Scripts/jquery-ui-1.8.custom.min.js" type="text/javascript"></script>
	<script type="text/javascript">
    </script>
    <style type="text/css">
	<!--
	body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
	}
	.STYLE19 {
		color: #344b50;
		font-size: 12px;
	}
	-->
	</style>
</head>
<body>
<table width="50%" border="0" align="center" cellpadding="0" cellspacing="0">
			
			<tr><td colspan="4" height="31" colspan="2" align="center" bgcolor="#FFFFFF" class="STYLE19"><strong>个人请假单明细</strong></td></tr>
			<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">序号：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">${orderInfo.orderId}</td></tr>
			<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">请假人：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">${orderInfo.userItem.userName}</td></tr>
			<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">请假标题：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">${orderInfo.title}</td></tr>
			<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">所属部门：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">${orderInfo.userItem.userInfo.postInfo.sectionInfo.sectionName}</td></tr>
			<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">请假原因：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">${orderInfo.reason}</td></tr>
			<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">请假类型：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">${orderInfo.absenceCategory.categoryName}</td></tr>
			<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">起始日期：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19"><s:date name="%{orderInfo.startTime}" format="yyyy-MM-dd"/></td></tr>
			<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">结束日期：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19"><s:date name="%{orderInfo.endTime}" format="yyyy-MM-dd"/></td></tr>
			<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">总计小时：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">${orderInfo.totalHours}</td></tr>
			<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">申请日期：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19"><s:date name="%{orderInfo.createTime}" format="yyyy-MM-dd HH:mm:ss"/></td></tr>
			<tr><td colspan = "2" height="31" colspan="2" align="center" bgcolor="#FFFFFF" class="STYLE19"><strong>审批详情</strong></td></tr>
			<s:if test = "replyOrderList != null && replyOrderList.size != 0">
			<s:iterator value="replyOrderList" var="item" status = "no">
				<tr><td colspan = "2" height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">第<s:property value="#no.count" />次审批</td></tr>
				<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">审批结果：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19"><s:if test = "#item.agreeOrNot == 1 ">同意</s:if><s:if test = "#item.agreeOrNot == 0 "> 不同意</s:if></td></tr>
				<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">审批内容：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">${item.contents}</td></tr>
				<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">审批日期：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19"><s:date name="#item.createTime" format="yyyy-MM-dd HH:mm:ss"/></td></tr>
				<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">审批人：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">${item.userItem.userName}</td></tr>
				<tr><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">审批职位：</td><td height="25" align="center" bgcolor="#FFFFFF" class="STYLE19">${item.userItem.userInfo.postInfo.sectionInfo.sectionName}${item.userItem.userInfo.postInfo.postName}</td></tr>
			</s:iterator>
			</s:if><s:else><tr><td colspan = "2" height="31" colspan="2" align="center" bgcolor="#FFFFFF" class="STYLE19"><strong>暂无审批</strong></td></tr></s:else>
			</table>

</body>
</html>